# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
# Maintainer: Matthias Ahouansou <matthias@ahouansou.cz>
pkgname=tree-sitter-ron
pkgver=0_git20220508
_gitrev=7762d709a0f7c1f9e269d0125a2e8a7a69006146
pkgrel=1
pkgdesc="Rusty Object Notation (RON) grammar for tree-sitter"
url="https://github.com/zee-editor/tree-sitter-ron"
arch="all"
license="Apache-2.0"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="$pkgname-$_gitrev.tar.gz::https://github.com/zee-editor/tree-sitter-ron/archive/$_gitrev.tar.gz"
builddir="$srcdir/$pkgname-$_gitrev"
options="!check"  # no tests for shared lib

build() {
	abuild-tree-sitter build
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
da1b4e8154b8e2285982b27fa628aa72152cf1b6b5a90b0fab5109c5b6cdc3c217eb5cb13ba0306bf5fbec1c992ebd3e4d9042c81f982650542246ac82b2734b  tree-sitter-ron-7762d709a0f7c1f9e269d0125a2e8a7a69006146.tar.gz
"
